class RenameTableRatings < ActiveRecord::Migration
  def self.up
    rename_table  :item_rating_votes, :item_review_votes
    rename_column :item_review_votes, :item_rating_id, :item_review_id
    rename_table  :item_rating_replies, :item_review_replies
    rename_column :item_review_replies, :item_rating_id, :item_review_id
  end

  def self.down
    rename_table  :item_review_votes, :item_rating_votes
    rename_column :item_review_votes, :item_review_id, :item_rating_id
    rename_table  :item_review_replies, :item_rating_replies
    rename_column :item_review_replies, :item_review_id, :item_rating_id
  end
end
